package com.ruoyi.purchase.service;

import com.ruoyi.purchase.domain.Brand;
import com.ruoyi.purchase.domain.Firm;
import com.ruoyi.purchase.domain.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.purchase.domain.Type;

import java.util.List;

/**
* @author lenovo
* @description 针对表【po_product】的数据库操作Service
* @createDate 2022-01-07 14:49:26
*/
public interface ProductService extends IService<Product> {
    public List<Product> findAllProduct(Product product);

    /**
     * 查询所有商品信息
     * @param product  查询条件
     * @return 厂商信息集合
     */
    public List<Product> queryList(Product product);

    /**
     * 商品状态修改
     *
     * @param product 厂商信息
     * @return 结果
     */
    public int changeStatus(Product product);


    public Product selectProductById(Integer productId);

    public List<Firm> selectFirm();

    public List<Type> selectType();

    public List<Brand> selectBrand();
    public Product findByBrandTypeModel(String productModel);
}
